/********************************************************************************
  * @file    Project/STM32F10x_StdPeriph_Template/MDK-ARM/TFT/LCD_Drive.hpp 
  * @author  Zxy
  * @date    2011/07/25
  * @brief   LCD drive class define
*******************************************************************************/

#ifndef LCD_DRIVE_HPP
#define LCD_DRIVE_HPP




class CLCD_DRIVE
{
public:
	
	void LCDInitialize();
	void ResetEnable(){GPIO_SetBits(GPIOD, GPIO_Pin_2);}
	void ResetDisable(){GPIO_ResetBits(GPIOD, GPIO_Pin_2);}
	void BackLightOn() {GPIO_SetBits(GPIOD, GPIO_Pin_3);}
	void BackLightOff() {GPIO_ResetBits(GPIOD, GPIO_Pin_3);}

protected:
	const INT32U* Bank1_LCD_DATA = ((INT16U *)(0x60020000));    //disp Data ADDR
	const INT32U* Bank1_LCD_CMD = ((INT16U *)(0x60000000));	 //disp Reg ADDR
	void InterfaceInit();
	void FSMCInit();

	

};


#endif

